From 0bd1ff393988727a17917b92fec71572d9448b54 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 1 Jun 2015 17:39:39 -0400 Subject: [PATCH] pull: Ensure console state for multiple GPG verification messages If there are multiple signatures to verify, we would attempt to display them multiple times, but we can only call `gs_console_end_status_line()` if the console has been enabled. Ensure we turn back on the console after printing our status. This will result in extra newlines, but fixing that cleanly would require a saner GSConsole API. --- src/ostree/ot-builtin-pull.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ostree/ot-builtin-pull.c b/src/ostree/ot-builtin-pull.c index 874e6dae..9192e7cc 100644 --- a/src/ostree/ot-builtin-pull.c +++ b/src/ostree/ot-builtin-pull.c @@ -54,6 +54,8 @@ gpg_verify_result_cb (OstreeRepo *repo, g_print ("\n"); ostree_print_gpg_verify_result (result); + + gs_console_begin_status_line (console, "", NULL, NULL); } gboolean -- 2.30.2